package com.phantasy.managers
{
	import flash.display.DisplayObjectContainer;
	import flash.events.MouseEvent;

	public class ToolTipManager
	{
		private static var _instance:ToolTipManager;
		private var tipContainer:DisplayObjectContainer;
		public function ToolTipManager()
		{
			
		}
		
		public static function getInstance():ToolTipManager
		{
			if (_instance == null)
			{
				_instance = new (ToolTipManager)();
			}
			return _instance;
		}
		
		public function registerContainer(_arg1:DisplayObjectContainer):void
		{
			if (this.tipContainer)
			{
				this.tipContainer.removeEventListener(MouseEvent.MOUSE_MOVE, this.stageMove);
			}
			this.tipContainer = _arg1;
			this.tipContainer.addEventListener(MouseEvent.MOUSE_MOVE, this.stageMove, false, 0, true);
		}
		
		private function stageMove(event:MouseEvent):void
		{
			event.updateAfterEvent();	
		}
	}
}